package com.zx.platform.zanadu.manager.util;

public class CourseInfo {
	private int id;
	private String name;
	private int status;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getStatus() {
		return status;
	}
	public String getStatusName() {
		String statusName = "";
		for(CourseBasicStatus em : CourseBasicStatus.values()) {
			if(em.getIndex() == status) {
				statusName = em.getName();
			}
		}
		return statusName;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	@Override
	public String toString() {
		return "CourseInfo [id=" + id + ", name=" + name + ", status=" + status + ", getStatusName()=" + getStatusName()
				+ "]";
	}

	
}
